<?php

namespace App\Admin\Repositories;
use Dcat\Admin\Grid;
use Dcat\Admin\Repositories\Repository;

class ChildBigData extends Repository
{
    public function get(Grid\Model $model)
    {
        $data=[
            [
                'total'=>10,
                'admin_total'=>20,
                'sign_admin_total'=>5,
                'sign_rate'=>"10%"
            ]
        ];
        return $model->makePaginator(1, // 传入总记录数
            $data // 传入数据二维数组
        );
    }
}
